package com.yangxk.kadmin.web.module.sample.service;

import com.yangxk.kadmin.common.base.BaseService;
import com.yangxk.kadmin.web.module.sample.form.BookEditForm;
import com.yangxk.kadmin.web.module.sample.form.BookQueryForm;
import com.yangxk.kadmin.web.module.sample.po.Book;
import com.yangxk.kadmin.web.module.sample.vo.BookVo;
import com.github.pagehelper.PageInfo;

public interface BookService extends BaseService<Book, Long>{

    PageInfo<BookVo> queryByPage(BookQueryForm bookQueryForm);


    long addBook(BookEditForm form);

    long updateBook(BookEditForm form);

    void deleteBook(long id);
}
